package com.kkang.ch3.taskscheduler;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author yongk_liu
 **/
public class Main {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(ScheduledTaskConfig.class);
//        applicationContext.close();//不能关闭applicationContext，关闭任务会停止
    }

}
